<admintpl file="headerEx" />
<title>{:L('ADMIN_RBAC_INDEX')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet" />
</head>
<body>
<section>
	<!-- main content start-->
	<div class="full-content" >
		<!--body wrapper start-->
		<div class="wrapper">
			<div class="row">
				<div class="col-sm-12">
					<section class="panel">
						<header class="panel-heading custom-tab turquoise-tab">
							<ul class="nav nav-tabs">
								<li class="active" >
									<a  href="{:U('rbac/index')}">
										<i class="fa fa-list-ul"></i> {:L('ADMIN_RBAC_INDEX')}
									</a>
								</li>
								<li  >
									<a  href="{:U('rbac/roleadd')}">
										<i class="fa fa-plus"></i> {:L('ADMIN_RBAC_ROLEADD')}
									</a>
								</li>
							</ul>
						</header>
						<div class="panel-body">
							<section id="no-more-tables">
								<form action="{:U('Rbac/listorders')}" method="post">
								<table class="table table-bordered table-striped table-hover table-condensed cf">
									<thead class="cf">
									<tr>
										<th align="center">ID</th>
										<th>{:L('ROLE_NAME')}</th>
										<th>{:L('ROLE_DESCRIPTION')}</th>
										<th>{:L('STATUS')}</th>
										<th>{:L('ACTIONS')}</th>
									</tr>
									</thead>
									<tbody>
									<php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));</php>
									<volist name="roles" id="vo" empty="没有找到符合条件的数据！">
										<tr>
											<td align="center">{$vo.id}</td>
											<td>{$vo.name}</td>
											<td>{$vo.remark}</td>
											<td>
												<if condition="$vo['status'] eq 1">
													<font color="red">√</font>
													<else />
													<font color="red">╳</font>
												</if>
											</td>
											<td>
												<if condition="$vo['id'] eq 1">
													<font color="#cccccc">{:L('ROLE_SETTING')}</font>|<!-- <a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | -->
													<font color="#cccccc">{:L('EDIT')}</font> | <font color="#cccccc">{:L('DELETE')}</font>
													<else />
													<a href="{:U('Rbac/authorize',array('id'=>$vo['id']))}">{:L('ROLE_SETTING')}</a>|
													<!-- <a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| -->
													<a href="{:U('Rbac/roleedit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>|
													<a class="js-ajax-delete" href="{:U('Rbac/roledelete',array('id'=>$vo['id']))}">{:L('DELETE')}</a>
												</if>
											</td>

										</tr>
									</volist>
									</tbody>
								</table>
									</form>
							</section>

						</div>
					</section>
				</div>
			</div>
		</div>

	</div>
	</div>
	</div>
	<!--body wrapper end-->

	<!--footer section start-->
	<footer>
		<admintpl file="copyright" />
	</footer>
	<!--footer section end-->

	</div>
	<!-- main content end-->
</section>

<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>

<!--common scripts for all pages-->
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>

</body>
</html>
